package com.ruoyi.printer_auth_records.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 打印机认证记录对象 printer_auth_records
 * 
 * @author ruoyi
 * @date 2025-02-28
 */
public class PrinterAuthRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 打印机序列号（外键） */
    @Excel(name = "打印机序列号", readConverterExp = "外=键")
    private String serialNumber;

    /** 主体名称（用户或设备名称） */
    @Excel(name = "主体名称", readConverterExp = "用=户或设备名称")
    private String subjectName;

    /** MAC地址 */
    @Excel(name = "MAC地址")
    private String macAddress;

    /** 手机号（账号） */
    @Excel(name = "手机号", readConverterExp = "账=号")
    private String phoneNumber;

    /** 认证状态（已认证/未认证） */
    @Excel(name = "认证状态", readConverterExp = "已=认证/未认证")
    private String authStatus;

    /** 使用状态（活跃/未活跃） */
    @Excel(name = "使用状态", readConverterExp = "活=跃/未活跃")
    private String usageStatus;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date authTime;

    /** 服务点所在省 */
    @Excel(name = "服务点所在省")
    private String province;

    /** 服务点所在市 */
    @Excel(name = "服务点所在市")
    private String city;

    /** 服务点所在区 */
    @Excel(name = "服务点所在区")
    private String district;

    /** 服务点详细地址 */
    @Excel(name = "服务点详细地址")
    private String addressDetail;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setSubjectName(String subjectName) 
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName() 
    {
        return subjectName;
    }
    public void setMacAddress(String macAddress) 
    {
        this.macAddress = macAddress;
    }

    public String getMacAddress() 
    {
        return macAddress;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setAuthStatus(String authStatus) 
    {
        this.authStatus = authStatus;
    }

    public String getAuthStatus() 
    {
        return authStatus;
    }
    public void setUsageStatus(String usageStatus) 
    {
        this.usageStatus = usageStatus;
    }

    public String getUsageStatus() 
    {
        return usageStatus;
    }
    public void setAuthTime(Date authTime) 
    {
        this.authTime = authTime;
    }

    public Date getAuthTime() 
    {
        return authTime;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }
    public void setAddressDetail(String addressDetail) 
    {
        this.addressDetail = addressDetail;
    }

    public String getAddressDetail() 
    {
        return addressDetail;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("subjectName", getSubjectName())
            .append("macAddress", getMacAddress())
            .append("phoneNumber", getPhoneNumber())
            .append("authStatus", getAuthStatus())
            .append("usageStatus", getUsageStatus())
            .append("authTime", getAuthTime())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("addressDetail", getAddressDetail())
            .toString();
    }
}
